package org.jeecg.modules.ws.common;

import lombok.Getter;

/**
 * @author ZJJ
 * @date 2025-05-08 上午10:31
 * @copyright Copyright (c) 2025 ZJJ
 */
@Getter
public enum WsFileTemplateEnum {
    BOND("bond","债券信息", "2"),
    PROJECT("project","项目管理", "3"),
    ASSET_MANAGEMENT("asset_management","资产管理", "4"),
    TENDER_PROJECT("tender_project","招标项目", "5"),
    PARITY_ITEM("parity_item","比价项目", "1"),
    EVENT("event","督办事项", "6"),
    CAPITAL_DETAIL("capital_detail","资金支付详情", "7"),
    YDBG("ydbg","月度报告", "8"),
    CWBB("cwbb","财务报表", "9"),
    HBLX("hblx","还本付息","10"),
    EXAMINE("examine","绩效考核","11"),
    BANK_INFO("bank_info","银行账户信息","12"),
    EMPLOYEE("employee","员工信息","13"),
    BOND_PROJECT_ANALYZE("bond_project_analyze","专项债进度分析","14"),
    CAPITAL_INFO("capital_info","资金总体情况","15"),
    BOND_PROJECT("bond_project","债券信息管理_项目","16"),
    BANK_FOREWARN("bank_forewarn","银行账户预警","17"),
    BANK_BLOCK_TRADE("bank_block_trade","大额交易预警","18"),
    EMAIL_ADMIN("email_admin","邮箱收件配置","19"),
    ;
    WsFileTemplateEnum(String templateBizCode,String templateBizName, String fileId) {
        this.templateBizCode = templateBizCode;
        this.templateBizName = templateBizName;
        this.fileId = fileId;
    }

    private String templateBizCode;
    private String templateBizName; // 模板业务名称
    private String fileId; // 文件地址Id
    public static WsFileTemplateEnum getByTemplateBizCode(String templateBizCode) {
        for (WsFileTemplateEnum value : WsFileTemplateEnum.values()) {
            if (value.templateBizCode.equals(templateBizCode)) {
                return value;
            }
        }
        return null;
    }
}
